try {
    //委外到货
	Type.registerNamespace('ScArriveVO');
	//委外到货VO
	ScArriveVO = function() {};
	ScArriveVO.prototype = new NCMMPubUtil.SuperVO();
	//委外订单主键**
	ScArriveVO.PK_ORDER = {
		name: "pk_order",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//委外单号
	ScArriveVO.VBILLCODE = {
		name: "vbillcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单据日期
	ScArriveVO.DBILLDATE = {
		name: "dbilldate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//采购部门
	ScArriveVO.PK_DEPT = {
        name: "pk_dept",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    ScArriveVO.PK_DEPT_NAME = {
        name: "pk_dept_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
	//委外订单明细**
	ScArriveVO.PK_ORDER_B = {
		name: "pk_order_b",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料
	ScArriveVO.PK_MATERIAL = {
		name: "pk_material",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料编码
	ScArriveVO.MATERIALCODE = {
		name: "materialcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料名称
	ScArriveVO.MATERIALNAME = {
		name: "materialname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//规格
	ScArriveVO.MATERIALSPEC = {
		name: "materialspec",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//型号
	ScArriveVO.MATERIALTYPE = {
		name: "materialtype",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//物料简称
	ScArriveVO.MATERIALSHORTNAME = {
		name: "materialshortname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};	
	//可到货主数量
	ScArriveVO.NNUM = {
		name: "nnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//可到货数量
	ScArriveVO.NASTNUM = {
		name: "nastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位
	ScArriveVO.CUNITID = {
		name: "cunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位名称
    ScArriveVO.CUNITID_NAME = {
        name: "cunitid_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };	
	//辅单位
	ScArriveVO.CASTUNITID = {
		name: "castunitid",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//辅单位名称
    ScArriveVO.CASTUNITID_NAME = {
        name: "castunitid_name",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };
    //换算率
     ScArriveVO.VCHANGERATE = {
        name: "vchangerate",
        type: NCMMPubUtil.VALUE_TYPE_TEXT
    };	
	//计划到货日期**
	ScArriveVO.DPLANARRVDATE = {
		name: "dplanarrvdate",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//表头ts
	ScArriveVO.HTS = {
		name: "hts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	//供应商名称
	ScArriveVO.PK_SUPPLIER_NAME = {
		name: "pk_supplier_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//供应商
	ScArriveVO.PK_SUPPLIER = {
		name: "pk_supplier",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//库存组织组织
	ScArriveVO.PK_STOCKORG = {
		name: "pk_stockorg",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货仓库**
	ScArriveVO.PK_RECVSTORDOC = {
		name: "pk_recvstordoc",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//收货仓库名称**
	ScArriveVO.PK_RECVSTORDOC_NAME = {
		name: "pk_recvstordoc_name",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	
	//表体ts
	ScArriveVO.BTS = {
		name: "bts",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	
	//批次号编码
	ScArriveVO.VBATCHCODE = {
		name: "vbatchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//批次号
	ScArriveVO.PK_BATCHCODE = {
		name: "pk_batchcode",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//已扫描主数量
	ScArriveVO.NSCANEDNUM = {
		name: "nscanednum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//已扫描数量
	ScArriveVO.NSCANEDASTNUM = {
		name: "nscanedastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//行号
	ScArriveVO.CROWNO = {
		name: "crowno",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	//业务员**
	ScArriveVO.CEMPLOYEEID={
	    name:"cemployeeid",
	    type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//**
    ScArriveVO.CEMPLOYEEID_NAME={
	    name:"cemployeeid_name",
	    type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	ScArriveVO.prototype.getAllAttrs = function() {
		return [
			ScArriveVO.PK_ORDER,
			ScArriveVO.PK_ORDER_B,
			ScArriveVO.MATERIALNAME,
			ScArriveVO.NNUM,
			ScArriveVO.NASTNUM,
			ScArriveVO.VBILLCODE,
			ScArriveVO.DBILLDATE,
			ScArriveVO.DPLANARRVDATE,
			ScArriveVO.HTS,
			ScArriveVO.PK_SUPPLIER_NAME,
			ScArriveVO.PK_STOCKORG,
			ScArriveVO.PK_RECVSTORDOC,
			ScArriveVO.PK_RECVSTORDOC_NAME,
			ScArriveVO.PK_MATERIAL,
			ScArriveVO.MATERIALSPEC,
			ScArriveVO.MATERIALTYPE,
			ScArriveVO.MATERIALSHORTNAME,
			ScArriveVO.MATERIALCODE,
			ScArriveVO.PK_DEPT,
			ScArriveVO.PK_DEPT_NAME,
			ScArriveVO.BTS,
			ScArriveVO.CASTUNITID,
			ScArriveVO.CASTUNITID_NAME,
			ScArriveVO.CUNITID,
			ScArriveVO.CUNITID_NAME,
			ScArriveVO.VCHANGERATE,
			ScArriveVO.VBATCHCODE,
			ScArriveVO.PK_BATCHCODE,
			ScArriveVO.NSCANEDNUM,
		    ScArriveVO.NSCANEDASTNUM,
			ScArriveVO.CROWNO,
			ScArriveVO.CEMPLOYEEID,
			ScArriveVO.CEMPLOYEEID_NAME]};
	ScArriveVO.prototype.getTableName = function() {
		return "sc_arrive";
	};
	ScArriveVO.prototype.getPrimaryAttr = function() {
		return ScArriveVO.PK_ORDER_B;
	};
} catch(e) {
	$e(e);
}